package com.sino.cloud.api.domain.auth;

public class BasicAuthDefinition extends AbstractSecuritySchemeDefinition {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String type = "basic";

	public BasicAuthDefinition() {
	}

	@Override
	public String getType() {
		return type;
	}

	@Override
	public void setType(String type) {
		this.type = type;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!super.equals(obj)) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		BasicAuthDefinition other = (BasicAuthDefinition) obj;
		if (type == null) {
			if (other.type != null) {
				return false;
			}
		} else if (!type.equals(other.type)) {
			return false;
		}
		return true;
	}
}
